package com.dmwork.service.customer.controller.front;


import com.dmwork.service.customer.service.CustomerFollowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户关注记录表 前端控制器
 * </p>
 *
 * @author 李天
 * @since 2021-03-10
 */
@Slf4j
@Api(description = "用户关注管理")
@Transactional
@RestController
@RequestMapping("/front/dm_work/customer/customer_follower")
public class CustomerFollowerController {

    @Autowired
    private CustomerFollowerService customerFollowerService;

    @ApiOperation("获取用户所有的粉丝用户id列表")
    @GetMapping("get_follower_id_list/{customerId}")
    public List<String> getFollowerIdList(@PathVariable("customerId") String customerId) {
        return customerFollowerService.getFollowerIdList(customerId);
    }

}

